package com.bkhc.umc.repository;

import com.bkhc.umc.entity.Address;
import com.bkhc.umc.entity.UProductCollection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UProductCollectionRepository extends JpaRepository<UProductCollection,String> , JpaSpecificationExecutor<UProductCollection> {


    List<UProductCollection> findByUserId(String userId);

    UProductCollection findByUserIdAndProductCode(String userId, String productCode);

    void deleteByUserIdAndProductCode(String userId, String productCode);
}
